<template>
	<view class="sharebtn">
		<view class="uni-share">
			<view class="uni-share-content">
				<view v-for="(item, index) in bottomData" :key="index" class="uni-share-content-box">
					<button class="uni-share-content-image" open-type="share" @click="choose(index)">
						<image :src="item.icon" class="content-image" />
					</button>
					<text class="uni-share-content-text">{{ item.text }}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bottomData: [{
						text: '微信',
						icon: '/static/wx.png',
						name: 'wx'
					},
					{
						text: '朋友圈',
						icon: '/static/pyq.png',
						name: 'copy'
					},
				],
			}
		},
		props: ["sharedataTemp"],
		methods: {
			
			choose(e){
				console.log(e)
				if(e == 0){
					
					// this.$parent.onShareAppMessage()
				}
			},
		},
		

	}
</script>

<style lang="less" scoped>
	/* 底部分享 */
	.sharebtn {
		.uni-share {
			width: 690rpx;
			margin: 30rpx;
			border-radius: 30rpx;
			/* #ifndef APP-NVUE */
			display: flex;
			flex-direction: column;
			/* #endif */
			background-color: #fff;

			/deep/button {
				position: relative;
				display: block;
				// margin-left: auto;
				// margin-right: auto;
				// padding-left: 14px;
				// padding-right: 14px;
				// box-sizing: border-box;
				font-size: 18px;
				text-align: center;
				text-decoration: none;
				// line-height: 2.55555556;
				// border-radius: 5px;
				-webkit-tap-highlight-color: transparent;
				// overflow: hidden;
				background-color: #FFFFFF !important;
				box-shadow: 0rpx 5rpx 10rpx #FFFFFF !important;
				cursor: pointer;
				color: #000;
				// background-color: #f8f8f8;
			}

			.uni-share-content {
				/* #ifndef APP-NVUE */
				display: flex;
				/* #endif */
				flex-direction: row;
				flex-wrap: nowrap;
				justify-content: center;
				overflow-x: scroll;
				padding: 15px 50rpx;

				.uni-share-content-box {
					/* #ifndef APP-NVUE */
					display: flex;
					/* #endif */
					flex-direction: column;
					align-items: center;
					// width: 25%;
					// justify-content: space-between;
					margin-right: 60rpx;

					&:nth-last-child(1) {
						margin-right: 0;
					}

					.uni-share-content-image {
						/* #ifndef APP-NVUE */
						display: flex;
						/* #endif */
						flex-direction: row;
						justify-content: center;
						align-items: center;
						width: 90rpx;
						height: 90rpx;
						overflow: hidden;
						border-radius: 10rpx;

						.content-image {
							width: 90rpx;
							height: 90rpx;
						}
					}

					&:nth-last-child(1) {
						.uni-share-content-image .content-image {
							width: 50rpx !important;
							height: 50rpx !important;
						}
					}

					.uni-share-content-text {
						font-size: 26rpx;
						color: #333;
						padding-top: 5px;
						padding-bottom: 10px;
					}
				}
			}
		}
	}
</style>
